//
// GPSMapEdit
// (c) Konstantin Galichsky (kg@infratel.com), 2002-2004
//
// Button control helper.
//

# include "StdAfx.h"
# include "Button.h"
# include "Globals.h"

void SetButtonIcon (HWND _hDlg, int _iItemId, UINT _icon) {
	::SendDlgItemMessage (
		_hDlg, _iItemId, BM_SETIMAGE, IMAGE_ICON,
		reinterpret_cast<LPARAM> (::LoadImage (g_hInst, MAKEINTRESOURCE (_icon), IMAGE_ICON, 16, 16, LR_SHARED))
	);
}
